#include<vector>
using namespace std;
int winningPlayerCount(int n, vector<vector<int>>& pick) {
    vector<vector<int>> cnt(n, vector<int>(11));
    for (auto& p : pick) {
        cnt[p[0]][p[1]]++;
    }
    int ans = 0;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j <= 10; j++) {
            if (cnt[i][j] > i) {
                ans++;
                break;
            }
        }
    }
    return ans;
}